package mark.tom.fiter;

import android.content.Context;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import mark.tom.fiter.bean.config.RequestConfig;
import okhttp3.Request;

public interface ResponseDispatcher {

    <T> T executeRequest(@NonNull Request mRequest,
                         @Nullable RequestConfig mRequestConfig);

    void executeRequest(@NonNull Context mContext,
                        @NonNull Request mRequest,
                        @Nullable RequestConfig mRequestConfig,
                        @Nullable IRequestListener<?> mRequestListener);
}
